//
//  YZWorkeNoteVM.h
//  VET
//
//  Created by 刘文靖 on 2018/7/10.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <Foundation/Foundation.h>
@class YZWorkNoteModel,YZWorkNoteLayout;
@interface YZWorkeNoteVM : NSObject
@property (nonatomic, readonly, strong) NSMutableArray<YZWorkNoteModel *> *noteList;
@property (nonatomic, readonly, strong)  NSMutableArray<YZWorkNoteLayout *> *layouts;;
/** 工作笔记列表 */
- (void)refreshNoteListWithCompletion:(void (^)(BOOL noMore))completion error:(void (^)(NSError *error))errorHandle;

- (void)LoadMoreNoteListWithCompletion:(void (^)(BOOL noMore))completion error:(void (^)(NSError *error))errorHandle;

/**笔记列表(档案) */
- (void)refreshArchiveListWithType:(NSString *)type objId:(NSInteger)objId completion:(void (^)(BOOL noMore))completion error:(void (^)(NSError *error))errorHandle;

- (void)LoadMoreArchivesListWithType:(NSString *)type objId:(NSInteger)objId completion:(void (^)(BOOL noMore))completion error:(void (^)(NSError *error))errorHandle;

/**添加笔记 */
- (RACSignal*)createNote:(NSDictionary *)dict;
/**更新笔记 */
- (RACSignal*)updateNote:(NSDictionary *)dict;
/**删除笔记 */
- (RACSignal*)deleteNote:(NSInteger )noteId;
@end
